/*****************************************************************************************
This file is a part of Arise library.

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

Arise Engine		Timer.h

					E-mail:		arise_engine@mail.ru

					Origin by:	DK Engine 0.019,
								dev (avon.dn.ua@gmail.com), Agressor (agress0r@mail.ru)

created:			12.12.2003
last changes:		28.02.2008
*****************************************************************************************/
#pragma once

class Timer
{
private:

	float	m_time;
	float	m_delta_time;
	int		m_fps;
	int		m_fps_counter;
	DWORD	m_last_time;
	DWORD	m_last_time_fps;

public:
	Timer();
	
	void Update();

	int		GetFPS() const		{return m_fps;}
	float	GetDelta() const	{return m_delta_time;}
	float	GetTime() const		{return m_time;}
};

